haproxy: adjust with glibc and libcrypt-compat
authorKonstantin Demin <[email protected]>
Wed, 9 Jul 2025 15:23:33 +0000 (18:23 +0300)
committerJosef Schlehofer <[email protected]>
Mon, 14 Jul 2025 08:40:15 +0000 (10:40 +0200)
glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Signed-off-by: Konstantin Demin <[email protected]>
net/haproxy/Makefile

index edef6d99346f0c8a83b28f55bfc825c6202c2831..e8330b35bfd891f20040faf509e10a1779db73b3 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=haproxy
 PKG_VERSION:=3.0.10
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.haproxy.org/download/3.0/src
@@ -31,6 +31,7 @@ define Package/haproxy/Default
   CATEGORY:=Network
   TITLE:=TCP/HTTP Load Balancer
   URL:=https://www.haproxy.org/
+  DEPENDS:= +USE_GLIBC:libcrypt-compat +libpcre2 +libltdl +zlib +libpthread +liblua5.4 +libatomic
 endef
 
 define Package/haproxy/conffiles
@@ -46,7 +47,7 @@ endef
 define Package/haproxy
   $(call Package/haproxy/Default)
   TITLE+=with SSL support
-  DEPENDS+= +libpcre2 +libltdl +zlib +libpthread +liblua5.4 +libopenssl +libncurses +libreadline +libatomic
+  DEPENDS+= +libopenssl +libncurses +libreadline
   VARIANT:=ssl
 endef
 
@@ -59,7 +60,6 @@ define Package/haproxy-nossl
   $(call Package/haproxy/Default)
   TITLE+=without SSL support
   VARIANT:=nossl
-  DEPENDS+= +libpcre2 +libltdl +zlib +libpthread +liblua5.4 +libatomic
   CONFLICTS:=haproxy
 endef